﻿<%@ Page Language="C#" MasterPageFile="~/Index.master" AutoEventWireup="true" CodeFile="productDetail.aspx.cs" Inherits="productDetail" Title="产品详情" %>

<%@ Register src="CustomTool/productsort.ascx" tagname="productsort" tagprefix="uc2" %>
<%--详情--%>
<asp:Content ID="Content1" runat="server" contentplaceholderid="head">
    <link rel="Stylesheet" type="text/css" href="Style/StyleSheet.css" />
    <style type="text/css">
        .style1
        {
            font-size: large;
            font-weight: bold;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="main" Runat="Server">
    <div style="float:left; background-color:White; width:250px; height:99.7%; border-right:solid 2px #C0C0C0; border-left:solid 2px #C0C0C0; border-top:solid 2px #C0C0C0">   
        <uc2:productsort ID="productsort1" runat="server" />  
    </div>
    <div style="float:right; background-color:White; width:680px; height:99.7%; border-left:solid 2px #C0C0C0; border-right:solid 2px #C0C0C0; border-top:solid 2px #C0C0C0">
      <table style="width: 675px;" border="0"> 
            <asp:Repeater ID="Repeater1" runat="server" >
              <ItemTemplate>   
                  <tr>
                    <td>
                        <table border="1" cellpadding="0" style="border:1px solid #0099FF; background-color:White" cellspacing="0"  
                            width="670px" rules="all" >
                            <tr>
                               <td colspan="3">
                                <strong>
                                    <font color="Black" size="3px">
                                        <%# DataBinder.Eval(Container.DataItem, "Book_Namestr")%>
                                    </font>
                                </strong>
                               </td>
                            </tr>
                            <tr>
                                <td  rowspan="6" style="width:160px; height:160px">
                                    <!--图片-->
                                    <img height="150px"  width="150px" alt="" src='<%# DataBinder.Eval(Container.DataItem,"Book_Coverstr")%>'/>
                                </td>                
                            </tr>
                            <tr>
                              <td style="width:80px;">现  价：
                              </td>
                              <td>&yen;<%# DataBinder.Eval(Container.DataItem, "sellprice")%>
                              </td>
                            </tr>
                            <tr>
                              <td>定  价：
                              </td>
                              <td >
                                 <del>&yen;<%# DataBinder.Eval(Container.DataItem, "Book_Priceflo")%></del>
                                 &nbsp;&nbsp;折  扣：<%# DataBinder.Eval(Container.DataItem, "Book_Discountflo")%>
                              </td>
                            </tr>
                            <tr>
                              <td >库  存：
                              </td>
                              <td > <%# DataBinder.Eval(Container.DataItem, "Book_Countint")%>
                              </td>
                            </tr>
                            <tr>
                              <td >作   者：
                              </td>
                              <td><%# DataBinder.Eval(Container.DataItem, "Book_Authorstr")%>
                              </td>
                            </tr>
                            <tr>
                              <td >出版社：
                              </td>
                              <td ><%# DataBinder.Eval(Container.DataItem, "Book_Publisherstr")%>
                              </td>
                            </tr>
                            <tr>
                              <td colspan="3" style=" padding-left:100px;">我要买
                                <asp:TextBox ID="buyCount"  runat="server"></asp:TextBox>件
                              </td>
                            </tr>
                            <tr>
                                <td colspan="3" style=" padding-left:100px; padding-top:2px">
                                  <a href="IsLogion.aspx?Book_Idint=<%# DataBinder.Eval(Container.DataItem,"Book_Idint")%>&buyNow=1&buyCount=1">
                                   <img style="border:0" src="image/buyNow.gif" alt="" />
                                  </a>&nbsp;
                                  <a href="IsLogion.aspx?Book_Idint=<%# DataBinder.Eval(Container.DataItem,"Book_Idint")%>&buyNow=1&buyCount=1">
                                   <img style="border:0" src="image/addCar.gif" alt="" />
                                  </a>
                                </td>
                            </tr>                             
                            <tr>
                                <td colspan="3" style="height:50px">
                                    <strong>详细介绍：</strong><br>
                                    <textarea style="width:98%; height:200px " rows="" cols=""  >
                                    <%# DataBinder.Eval(Container.DataItem, "Book_Descriptiontext")%>
                                    </textarea>
                                </td>
                            </tr>
                        </table>
                    </td>
                  </tr>
               </ItemTemplate>
             </asp:Repeater>
            <tr>
              <td >
                <hr style="color:#0099FF;width: 670px" size="2" /><span class="style1">相关评论</span>
                <hr style="color:#0099FF;width: 670px" size="2" />
              </td>
            </tr>
            <tr>
              <td style="border:solid 1px #0099FF">
                <asp:Repeater ID="Repeater2" Runat="server">
                    <ItemTemplate>
	                    <table width="500" border="0" cellspacing="0" cellpadding="0">
		                    <tr>
			                    <td>昵称：<%# DataBinder.Eval(Container.DataItem, "User_Namestr")%>
				                    &nbsp;&nbsp;时间：<%# DataBinder.Eval(Container.DataItem, "Comm_PublishDatedate", "{0:d}")%>
			                    </td>
		                    </tr>
		                    <tr>
			                    <td valign="top">评论：<%# DataBinder.Eval(Container.DataItem, "Comm_Detailtext")%></td>
		                    </tr>
	                    </table>
	                    <hr style="color:#0099FF">
                    </ItemTemplate>
                </asp:Repeater>
              </td>
            </tr>           
      </table>
    </div>
</asp:Content>




